﻿using LiteDB;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Helper
{
    public class LiteDbHelper
    {

        public string g_full_path { get; private set; }
        public LiteDatabase g_db { get; private set; }

        public LiteDbHelper(string full_path)
        {
            g_full_path = full_path;
            g_db = new LiteDatabase(g_full_path);

        }

        public ILiteCollection<T> GetCollection<T>(string collection_name)
        {
            return g_db.GetCollection<T>(collection_name);
        }

    }
}
